package rursu.view;

import rursu.business.MovieApplication;
import rursu.business.R;
import android.os.Bundle;
import android.preference.PreferenceActivity;

public class MoviePreferencesActivity extends PreferenceActivity {

	@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        // Load the preferences from an XML resource
        addPreferencesFromResource(R.xml.preferences_layout);
    }

	@Override
	protected void onPause() {		
		super.onPause();
		((MovieApplication)getApplication()).getDataProviderManager().getSettings().updateSettings();
	}
	
}
